package com.xhwl.logistics.component;

import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Component;

@Component
public class JsonConverter {

    public <T> T stringToObject(String jsonString, Class<T> clazz) {
        return JSON.parseObject(jsonString, clazz);
    }

}
